﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Interface_Tier;
using Transfer_Object_Tier;
using System.Data;
using Data_Access_Tier;


namespace Business_Tier
{
    public class BT_HRM_INSURANCEData : MarshalByRefObject, IHRM_INSURANCEData
    {
        HRM_INSURANCEData INSURANCE = new HRM_INSURANCEData();


        public int HRM_INSURANCE_Delete(Guid InsuranceID)
        {
            return INSURANCE.HRM_INSURANCE_Delete(InsuranceID);
        }
        public int HRM_INSURANCE_Disable(Guid InsuranceID, ref bool Enabled)
        {   
            return 1;
        }
        public System.Data.DataSet HRM_INSURANCE_Get(Guid InsuranceID)
        {
            return INSURANCE.HRM_INSURANCE_Get(InsuranceID);
        }
        public System.Data.DataSet HRM_INSURANCE_GetList()
            {
            return INSURANCE.HRM_INSURANCE_GetList();
        }
        public int HRM_INSURANCE_Insert(Guid InsuranceID, Guid InsuranceTableListID, string EmployeeCode, string EmployeeName, 
            string SocialInsuranceCode, string HealthInsuranceCode, DateTime Birthday, bool Sex, string IDCard, string MainAddress,
            string Province, string Hospital, decimal OldSalary, decimal OldAllowance1, decimal OldAllowance2, decimal OldAllowance3,
            decimal OldAllowance4, decimal NewSalary, decimal NewAllowance1, decimal NewAllowance2, decimal NewAllowance3,
            decimal NewAllowance4, DateTime FromDate, DateTime ToDate, double Rate, bool IsPay, int Type, string Description)
        {
            return INSURANCE.HRM_INSURANCE_Insert(InsuranceID,InsuranceTableListID,EmployeeCode,EmployeeName,SocialInsuranceCode,
                HealthInsuranceCode,Birthday, Sex,IDCard,MainAddress,Province,Hospital,OldSalary,OldAllowance1,
                OldAllowance2, OldAllowance3, OldAllowance4,NewSalary, NewAllowance1, NewAllowance2, NewAllowance3, 
                NewAllowance4, FromDate,ToDate,Rate, IsPay, Type, Description);
        }
        public int HRM_INSURANCE_Save(Guid InsuranceID, Guid InsuranceTableListID, string EmployeeCode, string EmployeeName, 
            string SocialInsuranceCode, string HealthInsuranceCode, DateTime Birthday, bool Sex, string IDCard, string MainAddress,
            string Province, string Hospital, decimal OldSalary, decimal OldAllowance1, decimal OldAllowance2, decimal OldAllowance3,
            decimal OldAllowance4, decimal NewSalary, decimal NewAllowance1, decimal NewAllowance2, decimal NewAllowance3, 
            decimal NewAllowance4, DateTime FromDate, DateTime ToDate, double Rate, bool IsPay, int Type, string Description)
        {
            return INSURANCE.HRM_INSURANCE_Save(InsuranceID, InsuranceTableListID, EmployeeCode, EmployeeName, SocialInsuranceCode,
                HealthInsuranceCode, Birthday, Sex, IDCard, MainAddress, Province, Hospital, OldSalary, OldAllowance1,
                OldAllowance2, OldAllowance3, OldAllowance4, NewSalary, NewAllowance1, NewAllowance2, NewAllowance3,
                NewAllowance4, FromDate, ToDate, Rate, IsPay, Type, Description);
        }
        public int HRM_INSURANCE_Update(Guid InsuranceID, Guid InsuranceTableListID, string EmployeeCode, string EmployeeName, 
            string SocialInsuranceCode, string HealthInsuranceCode, DateTime Birthday, bool Sex, string IDCard, string MainAddress,
            string Province, string Hospital, decimal OldSalary, decimal OldAllowance1, decimal OldAllowance2, decimal OldAllowance3, 
            decimal OldAllowance4, decimal NewSalary, decimal NewAllowance1, decimal NewAllowance2, decimal NewAllowance3, decimal
            NewAllowance4, DateTime FromDate, DateTime ToDate, double Rate, bool IsPay, int Type, string Description)
        {
            return INSURANCE.HRM_INSURANCE_Update(InsuranceID, InsuranceTableListID, EmployeeCode, EmployeeName, SocialInsuranceCode,
                HealthInsuranceCode, Birthday, Sex, IDCard, MainAddress, Province, Hospital, OldSalary, OldAllowance1,
                OldAllowance2, OldAllowance3, OldAllowance4, NewSalary, NewAllowance1, NewAllowance2, NewAllowance3,
                NewAllowance4, FromDate, ToDate, Rate, IsPay, Type, Description);
        }
        public DataSet HRM_INSURANCE_Get02aTBHTotalUp(int NumberSocial, int NumberHealth, decimal WageSocial, decimal WageHealth, decimal PaySocial, decimal PayHealth, decimal PayExtraSocial, decimal PayExtraHealth, int ExtraMonth)
        {
            return INSURANCE.HRM_INSURANCE_Get02aTBHTotalUp(NumberSocial,NumberHealth,WageSocial,WageHealth,PaySocial,PayHealth,PayExtraSocial,PayExtraHealth,ExtraMonth);
        }
        public DataSet HRM_INSURANCE_Get03aTBHTotalUp(Int32 NumberIncreaseSocial, Int32 NumberDecreaseSocial, Int32 NumberIncreaseHealth, Int32 NumberDecreaseHealth, Int32 NumberIncreaseUnemployment, Int32 NumberDecreaseUnemployment, Decimal WageIncreaseUnemployment, Decimal WageDecreaseUnemployment, Decimal PayIncreaseSocial, Decimal PayDecreaseSocial, Decimal PayIncreaseHealth, Decimal PayDecreaseHealth, Decimal PayIncreaseUnemployment, Decimal PayDecreaseUnemployment, Decimal PayExtraIncreaseSocial, Decimal PayExtraDecreaseSocial, Decimal PayExtraIncreaseHealth, Decimal PayExtraDecreaseHealth, Decimal PayExtraIncreaseUnemployment, Decimal PayExtraDecreaseUnemployment, Int32 ExtraMonth, Int32 NumberOldSocial, Int32 NumberNewSocial, Int32 NumberOldHealth, Int32 NumberNewHealth, Int32 NumberOldUnemployment, Int32 NumberNewUnemployment, Int32 WageOldSocial, Int32 WageNewSocial, Int32 WageOldHealth, Int32 WageNewHealth, Int32 WageOldUnemployment, Int32 WageNewUnemployment, Int32 PayOldSocial, Int32 PayNewSocial, Int32 PayOldHealth, Int32 PayNewHealth, Int32 PayOldUnemployment, Int32 PayNewUnemployment) 
        {
            DataSet ds = null;
            return ds;
        }
       
        public DataSet HRM_INSURANCE_GetList03aTBH(Guid InsuranceTableListID)
        {
            return INSURANCE.HRM_INSURANCE_GetList03aTBH(InsuranceTableListID);
        }
        public DataSet HRM_INSURANCE_GetListAddHealth(Guid InsuranceTableListID)
        {
            return INSURANCE.HRM_INSURANCE_GetListAddHealth(InsuranceTableListID);
        }
        public DataSet HRM_INSURANCE_GetListAddUnemployment(Guid InsuranceTableListID)
        {
            return INSURANCE.HRM_INSURANCE_GetListAddUnemployment(InsuranceTableListID);
        }
        public DataSet HRM_INSURANCE_GetListByInsuranceTableList(Guid InsuranceTableListID)
        {
            return INSURANCE.HRM_INSURANCE_GetListByInsuranceTableList(InsuranceTableListID);
        }
        public DataSet HRM_INSURANCE_GetListByType(Guid InsuranceTableListID, int Type)
        {
            return INSURANCE.HRM_INSURANCE_GetListByType(InsuranceTableListID,Type);
        }
        public DataSet HRM_INSURANCE_GetListChangeSalary(Guid InsuranceTableListID)
        {
            return INSURANCE.HRM_INSURANCE_GetListChangeSalary(InsuranceTableListID);
        }
        public DataSet HRM_INSURANCE_GetListDecrease(Guid InsuranceTableListID)
        {
            return INSURANCE.HRM_INSURANCE_GetListDecrease(InsuranceTableListID);
        }
        public DataSet HRM_INSURANCE_GetListIncrease(Guid InsuranceTableListID)
        {
            return INSURANCE.HRM_INSURANCE_GetListIncrease(InsuranceTableListID);
        }
        public DataSet HRM_INSURANCE_GetListModify(Guid InsuranceTableListID)
        {
            return INSURANCE.HRM_INSURANCE_GetListModify(InsuranceTableListID);
        }
        public DataSet HRM_INSURANCE_GetListType(Guid InsuranceTableListID)
        {
            return INSURANCE.HRM_INSURANCE_GetListType(InsuranceTableListID);
        }
        public DataSet HRM_INSURANCE_TABLELIST_Delete(Guid InsuranceTableListID)
        {
            return INSURANCE.HRM_INSURANCE_TABLELIST_Delete(InsuranceTableListID);
        }
    }
}
